import { CartItemContainer, ItemDetails } from "./cart-item.styles";

const CartItem = ({ cartItem }) => {
  const { title, image, price, size } = cartItem;
  return (
    <CartItemContainer>
      <img src={image} alt={`${title}`} />
      <ItemDetails>
        <span>{size}</span>
        <span>{price}万</span>
      </ItemDetails>
    </CartItemContainer>
  );
};

export default CartItem;
//<span>{title}</span>
